package com.bins.dentist.clinic.controller;

import com.bins.dentist.clinic.model.dto.AreaDto;
import com.bins.dentist.clinic.model.vo.AreaVo;
import com.bins.dentist.clinic.model.vo.ResultVo;
import com.bins.dentist.clinic.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 区域表 前端控制器
 * </p>
 *
 * @author bins
 * @since 2023-04-23 13:22:36
 */
@RestController
@RequestMapping("/system/area")
public class AreaController {

    @Autowired
    private AreaService areaService;

    @GetMapping("/select")
    public ResultVo<List<AreaVo>> selectList(AreaDto dto) {
        return ResultVo.ok().data(areaService.selectList(dto));
    }

}

